package com.yonyougov.devops.cruxcisupport.rancher;

import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 创建pod的参数
 */
@Data
public class Pod {
    private boolean hostIPC;
    private boolean hostNetwork;
    private boolean hostPID;
    private boolean paused;
    private String type = "workload";
    private String namespaceId;
    private int scale;
    private String dnsPolicy = "ClusterFirst";
    private String restartPolicy = "Always";
    private Map<String, String> labels = new HashMap<>();
    private List<Container> containers = new ArrayList<>();
    private Schedule scheduling = new Schedule();
    private DeploymentConfig deploymentConfig = new DeploymentConfig();
    private String name;
    private Map<String, String> annotations = new HashMap<>();
    List<Volume> volumes = new ArrayList<>();
}
